<?php 
namespace app\api\validate;

use think\Validate;

class OrderCreateValidate extends BaseValidate
{
    protected $rule = [
        'addressId'  =>  'require',
        'expressWay'=>'require',
        'payWay'  =>  'require',
        'invoiceType'  =>  'require',
        'invoiceHeader'  =>  'require',
        'invoiceContent'  =>  'require',
    ];   

    protected $message  =   [
        'addressId.require' => '地址ID必须传递|400',
        'expressWay.require'   => '快递方式必须|401',
        'payWay.require'   => '支付方式不正确|404',
        'invoicetype.require' => '发票类型必须传递|400',
        'invoicetHeader.require' => '发票抬头必须传递|400',
        'invoiceContent.require' => '发票内容必须传递|400',
    ];

   
}


?>